package com.orhonit.ipb.portal.taskListener;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;

import com.orhonit.ipb.portal.biz.JoApplyJoinPartyBiz;
import com.orhonit.ipb.portal.biz.TbPartyOrgCatalogBiz;
import com.orhonit.ipb.portal.entity.JoApplyJoinParty;
import com.orhonit.ipb.portal.entity.ListenerEntity;

@SuppressWarnings("serial")
public class TaskUpupListenerImpl implements TaskListener {
	/**用来指定上上级（旗及）任务的办理人*/
	@Override
	public void notify(DelegateTask delegateTask) {
		ListenerEntity listenerEntity=(ListenerEntity) delegateTask.getVariable("listenerEntity"); 	
		delegateTask.setAssignee(listenerEntity.getUpUpUser());
	}

}
